package cn.edu.zjut.medlinebackend.mapper;

import cn.edu.zjut.medlinebackend.model.Group;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GroupMapper extends BaseMapper<Group> {
    boolean deleteByGroupname(@Param("groupname") String groupname);
    Group getGroupByGroupname(@Param("groupname") String groupname);
    List<Group> getByUername(@Param("username") String username);
    List<Group> searchGroup(@Param("groupname") String groupname);
}

